# @shuaige : 陈世玉
# @name :01-认识Selenium.py
# @time :2024/12/5 19:36
from selenium import webdriver
# 引入Keys类
#创建浏览器对象
path='chromedriver.exe'
driver = webdriver.Chrome(path)
#访问网站
url='https://www.jd.com/'
driver.get(url)
#page_source可以获取网页源码
data=driver.page_source
print(data)
driver.quit()